/**
 * 工作提醒-今日日常工作进展统计
 * @param {number} data.pageNumber - 当前页
 * @param {number} data.pageSize - 每页条数
 */
function apiGetInfoList(data) {
  console.log("apiGetInfoList", data);
  return new Promise((resolve, reject) => {
    let res = {};
    if (window.role === "servicer") {
      res = {
        code: 200,
        data: [
          {
            id: "a1b699ab-c9e8-4581-a59d-b64369251be91",
            department: "编辑部",
            name: "王某某",
            must_follow_num: 20,
            must_finished_num: 65,
            must_unfinished_num: 48,
            can_follow_num: 86,
            can_finished_num: 15,
            can_unfinished_num: 32,
            total_follow_num: 26,
            total_finished_num: 45,
            total_unfinished_num: 26,
          },
          {
            id: "a1b699ab-c9e8-4581-a59d-b64369251be91",
            department: "编辑部",
            name: "王某某",
            must_follow_num: 20,
            must_finished_num: 65,
            must_unfinished_num: 48,
            can_follow_num: 86,
            can_finished_num: 15,
            can_unfinished_num: 32,
            total_follow_num: 26,
            total_finished_num: 45,
            total_unfinished_num: 26,
          },
          {
            id: "a1b699ab-c9e8-4581-a59d-b64369251be91",
            department: "编辑部",
            name: "王某某",
            must_follow_num: 20,
            must_finished_num: 65,
            must_unfinished_num: 48,
            can_follow_num: 86,
            can_finished_num: 15,
            can_unfinished_num: 32,
            total_follow_num: 26,
            total_finished_num: 45,
            total_unfinished_num: 26,
          },
          {
            id: "a1b699ab-c9e8-4581-a59d-b64369251be91",
            department: "编辑部",
            name: "王某某",
            must_follow_num: 20,
            must_finished_num: 65,
            must_unfinished_num: 48,
            can_follow_num: 86,
            can_finished_num: 15,
            can_unfinished_num: 32,
            total_follow_num: 26,
            total_finished_num: 45,
            total_unfinished_num: 26,
          },
          {
            id: "a1b699ab-c9e8-4581-a59d-b64369251be91",
            department: "编辑部",
            name: "王某某",
            must_follow_num: 20,
            must_finished_num: 65,
            must_unfinished_num: 48,
            can_follow_num: 86,
            can_finished_num: 15,
            can_unfinished_num: 32,
            total_follow_num: 26,
            total_finished_num: 45,
            total_unfinished_num: 26,
          },
          {
            id: "a1b699ab-c9e8-4581-a59d-b64369251be91",
            department: "编辑部",
            name: "王某某",
            must_follow_num: 20,
            must_finished_num: 65,
            must_unfinished_num: 48,
            can_follow_num: 86,
            can_finished_num: 15,
            can_unfinished_num: 32,
            total_follow_num: 26,
            total_finished_num: 45,
            total_unfinished_num: 26,
          },
          {
            id: "a1b699ab-c9e8-4581-a59d-b64369251be91",
            department: "编辑部",
            name: "王某某",
            must_follow_num: 20,
            must_finished_num: 65,
            must_unfinished_num: 48,
            can_follow_num: 86,
            can_finished_num: 15,
            can_unfinished_num: 32,
            total_follow_num: 26,
            total_finished_num: 45,
            total_unfinished_num: 26,
          },
          {
            id: "a1b699ab-c9e8-4581-a59d-b64369251be91",
            department: "编辑部",
            name: "王某某",
            must_follow_num: 20,
            must_finished_num: 65,
            must_unfinished_num: 48,
            can_follow_num: 86,
            can_finished_num: 15,
            can_unfinished_num: 32,
            total_follow_num: 26,
            total_finished_num: 45,
            total_unfinished_num: 26,
          },
          {
            id: "a1b699ab-c9e8-4581-a59d-b64369251be91",
            department: "编辑部",
            name: "王某某",
            must_follow_num: 20,
            must_finished_num: 65,
            must_unfinished_num: 48,
            can_follow_num: 86,
            can_finished_num: 15,
            can_unfinished_num: 32,
            total_follow_num: 26,
            total_finished_num: 45,
            total_unfinished_num: 26,
          },
          {
            id: "a1b699ab-c9e8-4581-a59d-b64369251be91",
            department: "编辑部",
            name: "王某某",
            must_follow_num: 20,
            must_finished_num: 65,
            must_unfinished_num: 48,
            can_follow_num: 86,
            can_finished_num: 15,
            can_unfinished_num: 32,
            total_follow_num: 26,
            total_finished_num: 45,
            total_unfinished_num: 26,
          },
        ],
        total: 100,
      };
    } else if (window.role === "seller") {
      res = {
        code: 200,
        data: [
          {
            id: "a1b699ab-c9e8-4581-a59d-b64369251be91",
            department: "编辑部",
            name: "王某某",
            performance: 20,
            retention_gap: 65,
            upgrade_gap: 48,
            tracking_num: 86,
            above_c_num: 15,
            above_c_new: 32,
          },
          {
            id: "a1b699ab-c9e8-4581-a59d-b64369251be91",
            department: "编辑部",
            name: "王某某",
            performance: 20,
            retention_gap: 65,
            upgrade_gap: 48,
            tracking_num: 86,
            above_c_num: 15,
            above_c_new: 32,
          },
          {
            id: "a1b699ab-c9e8-4581-a59d-b64369251be91",
            department: "编辑部",
            name: "王某某",
            performance: 20,
            retention_gap: 65,
            upgrade_gap: 48,
            tracking_num: 86,
            above_c_num: 15,
            above_c_new: 32,
          },
          {
            id: "a1b699ab-c9e8-4581-a59d-b64369251be91",
            department: "编辑部",
            name: "王某某",
            performance: 20,
            retention_gap: 65,
            upgrade_gap: 48,
            tracking_num: 86,
            above_c_num: 15,
            above_c_new: 32,
          },
          {
            id: "a1b699ab-c9e8-4581-a59d-b64369251be91",
            department: "编辑部",
            name: "王某某",
            performance: 20,
            retention_gap: 65,
            upgrade_gap: 48,
            tracking_num: 86,
            above_c_num: 15,
            above_c_new: 32,
          },
          {
            id: "a1b699ab-c9e8-4581-a59d-b64369251be91",
            department: "编辑部",
            name: "王某某",
            performance: 20,
            retention_gap: 65,
            upgrade_gap: 48,
            tracking_num: 86,
            above_c_num: 15,
            above_c_new: 32,
          },
          {
            id: "a1b699ab-c9e8-4581-a59d-b64369251be91",
            department: "编辑部",
            name: "王某某",
            performance: 20,
            retention_gap: 65,
            upgrade_gap: 48,
            tracking_num: 86,
            above_c_num: 15,
            above_c_new: 32,
          },
          {
            id: "a1b699ab-c9e8-4581-a59d-b64369251be91",
            department: "编辑部",
            name: "王某某",
            performance: 20,
            retention_gap: 65,
            upgrade_gap: 48,
            tracking_num: 86,
            above_c_num: 15,
            above_c_new: 32,
          },
          {
            id: "a1b699ab-c9e8-4581-a59d-b64369251be91",
            department: "编辑部",
            name: "王某某",
            performance: 20,
            retention_gap: 65,
            upgrade_gap: 48,
            tracking_num: 86,
            above_c_num: 15,
            above_c_new: 32,
          },
          {
            id: "a1b699ab-c9e8-4581-a59d-b64369251be91",
            department: "编辑部",
            name: "王某某",
            performance: 20,
            retention_gap: 65,
            upgrade_gap: 48,
            tracking_num: 86,
            above_c_num: 15,
            above_c_new: 32,
          },
        ],
        total: 100,
      };
    }
    const err = {
      code: 500,
      msg: "获取列表失败",
    };
    setTimeout(() => {
      resolve(res);
      // reject(err);
    }, 500);
  });
}
